<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue 入门案例</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="app">
    <input type="input" v-model="userName" id="userName">
    {{userName}}
</div>
</body>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            userName: "admin"
        },
        methods: {
            show() {

            }
        },
        mounted() {
            alert(this.userName)
        }
    })
</script>
</html>